package org.hxzon.nioserver.impl;

import org.hxzon.nioserver.BufferFactory;

import java.nio.ByteBuffer;

public class DumbBufferFactory implements BufferFactory {

    public ByteBuffer newBuffer(int len) {
        return ByteBuffer.allocate(len);
    }

    public void returnBuffer(ByteBuffer buffer) {
        // do nothing
    }
}
